package com.kaigejava.command.sdk;

/**
 * Created by kaigejava on 2019/8/28.
 * 电灯的SDK
 */
public class LightAPI {

    /**
     * 电灯所在位置
     */
    private String location = "";

    public LightAPI (String location){
        this.location = location;
    }

    /**
     * 开灯效果
     */
    public void On(){
        System.out.println(location +"的灯打开");
    }

    /**
     * 关灯
     */
    public void Off(){
        System.out.println(location+"的灯关了");
    }
}
